<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('管理')" />
</head>
<body>
<div class="wrapper">
    <form style="font-size: 12px" id="form">
        <div class="box-body">
            <div class="form-group">
                <label>名称</label>
                <input type="text" class="form-control input-sm" name="levelName" id="levelName" required>
            </div>
            <div class="form-group">
                <label>委托比率</label>
                <input type="text" class="form-control input-sm" name="soldRate" id="soldRate" required>
            </div>
            <div class="form-group">
                <label>拖回比率</label>
                <input type="text" class="form-control input-sm" name="backRate" id="backRate" required>
            </div>
            <div class="form-group">
                <label>最低费用</label>
                <input type="text" class="form-control input-sm" name="minPrice" id="minPrice" required>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = "/system/level";
    $(function() {
    });
    function submitHandler() {
        if ($.validate.form()) {
            var json = $.common.formToJSON('form');
            $.operate.save(prefix + '/save', json);
        }
    };
</script>
</body>
</html>
